package com.zyf.service;

import com.zyf.mapper.UserMapper;
import com.zyf.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService{

    @Resource
    UserMapper mapper;

    @Override
    public User login(String username) {

        return mapper.login(username);
    }
}
